package com.demo.forum.model2;

import lombok.Data;
import org.springframework.stereotype.Component;
import java.util.Date;
@Data
@Component
/**
 * 用户类
 */
public class User {
    private Long id;//账号
    private String username;//姓名
    private Byte deleteState;//用户状态
    private double balance ;//余额
    private Double interest;
    private Date now;//当前时间
    private Date expirationTime;//到期时间

    public User(Long id, String username, Byte deleteState) {
        this.id = id;
        this.username = username;
        this.deleteState = deleteState;
    }

    public User(Long id, String username, Byte deleteState, double balance, Date now) {
        this.id = id;
        this.username = username;
        this.deleteState = deleteState;
        this.balance = balance;
        this.now = now;

    }

    public User(){

    }

}